import { playerStore } from '../../store/player-stroe'
Component({
    properties: {
        index:{
            type:Number,
            value:''
        },
        item:{
            type:Object,
            value:{}
        }
    },
    methods: {
        handelSongItemClick(){
            const id = this.properties.item.id
            wx.navigateTo({
              url: `/packagePlayer/pages/music-player/index?id=${id}`,
            })
            // 播放歌曲
            playerStore.dispatch('playMusicWithSongIdAction', { id })
        }
    }
})
